package com.tensquare.friend.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("tensquare-user")
public interface UserClient {
   /**
    * 修改粉丝数量
    * @return
    */
   @RequestMapping(value="/user/fanscount/{userid}/{count}",method= RequestMethod.PUT)
   public Result changeFansCount(@PathVariable("userid") String userid, @PathVariable("count") Integer count);
   /**
    * 修改关注数量
    * @return
    */
   @RequestMapping(value="/user/followcount/{userid}/{count}",method= RequestMethod.PUT)
   public Result changeFollowCount(@PathVariable("userid") String userid, @PathVariable("count") Integer count);
}
